<extend name="Public/base" />
<block name="wrapper">
	<table class="table">
		<tr><th  colspan="7" ><h2><a href="{:U('User/add')}">用户添加</a></h2></th></tr>
			<tr>
				<th>用户id</th>
				<th>用户名</th>
				<th>用户头像</th>
				<th>用户昵称</th>
				<th>用户状态</th>
				<th>等级</th>
				<th>金币</th>
				<th>邮箱</th>
				<th>电话</th>
				<th>注册时间</th>
				<th>最后登录</th>
				<th>注册ip</th>
				<th>操作</th>
			</tr>
			<foreach name="data" item="vo">
				<tr>
					<td>{$vo['id']}</td>
					<td>{$vo['username']}</td>
					<td><img src="__PUBLIC__/{:empty($vo['userpic'])?'Images/default.jpg' : $vo['userpic']}" width="40" height="40"> </td>
					<td>{$vo['nickname']}</td>
					<td>{$vo['status']}</td>
					<td>{$vo['level']}</td>
					<td>{$vo['gold']}</td>
					<td>{$vo['email']}</td>
					<td>{$vo['phone']}</td>
					<td>{$vo['regtime']}</td>
					<td>{$vo['lasttime']}</td>
					<td>{$vo['regip']}</td>
					<td><a href="{:U('user/lahei/',['id'=>$vo['id']])}" class="btn btn-danger" >禁用</a><a class="btn btn-warning" href="{:U('user/edit/',['id'=>$vo['id']])}">修改</a></td>
				</tr>
			</foreach>
			<tr>
				<td colspan="7" align="center"><div class="pages">{$page}</div></td>
			</tr>
	</table>
</block>